* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 28rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.bank-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 2rem;
    text-align: center;
    color: white;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.bank-logo {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 0.5rem;
    position: relative;
}

.bank-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 0.25rem;
}

.bank-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.auth-form-section {
    padding: 2rem;
}

.form-container {
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-input:valid {
    border-color: #10b981;
}

.input-help {
    color: #6b7280;
    font-size: 0.75rem;
}

.submit-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.submit-button:active {
    transform: translateY(0);
}

.button-text {
    flex: 1;
}

.button-icon {
    display: flex;
    align-items: center;
}

.form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 0.5rem;
    border: 1px solid #e0f2fe;
}

.security-icon {
    color: #0369a1;
    display: flex;
    align-items: center;
}

.security-text {
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 500;
}

.help-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.help-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.help-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 640px) {
    body {
        padding: 0.5rem;
    }

    .auth-container {
        max-width: 100%;
        border-radius: 0.75rem;
    }

    .bank-header {
        padding: 1.5rem;
    }

    .auth-form-section {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .help-links {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .bank-header {
        padding: 1rem;
    }

    .auth-form-section {
        padding: 1rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .bank-name {
        font-size: 1.25rem;
    }
}

/* Form validation styles */
.form-input:invalid:not(:placeholder-shown)+.input-help {
    color: #ef4444;
}

.form-input:valid+.input-help {
    color: #10b981;
}

/* Loading state for submit button */
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Focus styles for accessibility */
.help-link:focus,
.submit-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px;
    }

    .submit-button {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}